package PhaseoneModuletwo.TheThirdQuestion.code;

/**
 * (1)手机卡类 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量 行为：显示（卡号 + 用户名 + 当前余额）
 */
public class SIMCard {
    private String cardType;
    private String cardId;
    private String userName;
    private String passWord;
    private String balance;
    private String talkTime;
    private String flow;

    public SIMCard(String cardType, String cardId, String userName, String passWord, String balance, String talkTime, String flow) {
        this.cardType = cardType;
        this.cardId = cardId;
        this.userName = userName;
        this.passWord = passWord;
        this.balance = balance;
        this.talkTime = talkTime;
        this.flow = flow;
    }

    public SIMCard() {

    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(String talkTime) {
        this.talkTime = talkTime;
    }

    public String getFlow() {
        return flow;
    }

    public void setFlow(String flow) {
        this.flow = flow;
    }

    public void show() {
        System.out.println("卡号：" + cardId + "\t用户名：" + userName + "\t当前余额:"+getBalance());
    }
}
